﻿@model XSTDZ.ERP.Application.DataContracts.ProductInfoDto

@{
    ViewBag.Title = " - 查看产品信息";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
     <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}

<h2>查看产品信息</h2>
<div class="wp100">
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">@* <h2>新增入库单</h2>*@
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
    <tr>
    <td class="title"> @Html.LabelFor(model => model.ProductName)</td>
        <td>  @Html.TextBoxFor(model => model.ProductName, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.ProductName)
        </td>

        <td class="title"> @Html.LabelFor(model => model.ProductCode)</td>
        <td> @Html.TextBoxFor(model => model.ProductCode, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.ProductCode)
         </td>
  </tr>
    <tr>
    <td class="title">@Html.LabelFor(model => model.ProductStandard)</td>
        <td>  @Html.TextBoxFor(model => model.ProductStandard, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.ProductStandard)
        </td>

        <td class="title">@Html.LabelFor(model => model.MnemonicCode)</td>
        <td>   @Html.TextBoxFor(model => model.MnemonicCode, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.MnemonicCode)
         </td>
  </tr>
      <tr>
    <td class="title">@Html.LabelFor(model => model.ProductUint)</td>
        <td>  @*@Html.TextBoxFor(model => model.ProductUint, new { @class = "text disablebg", @readonly = "readonly" })*@
        @Html.DropDownListFor(model => model.ProductUint, ViewBag.ProductUintList as IEnumerable<SelectListItem>,"--请选择计量单位--", new { @class = "select" })
            @Html.ValidationMessageFor(model => model.ProductUint)
        </td>

        <td class="title">@Html.LabelFor(model => model.SellPrice)  (元)</td>
        <td>   @Html.TextBoxFor(model => model.SellPrice, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.SellPrice)
         </td>
  </tr>
        <tr>
        <td class="title">  @Html.LabelFor(model => model.TypeName)</td>
        <td>   @Html.HiddenFor(model => model.ProductTypeID)
            @Html.TextBoxFor(model => model.TypeName, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.TypeName)
         </td>
        <td class="title">  @Html.LabelFor(model => model.Remarks)</td>
        <td>   @Html.TextBoxFor(model => model.Remarks, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Remarks)
         </td>
  </tr>
    </table>
}
</div>
